﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master"
    CodeBehind="ObslugaMagazynu.aspx.cs" Inherits="DEMI_webapp.ObslugaMagazaynu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <asp:ImageButton ID="btnPrzyjecia" runat="server" ImageAlign="Middle" Width="230"
        Height="50" ImageUrl="~/Styles/images/MENU2_przyjęcia.png" OnClick="btnPrzyjecia_Click" />
    &nbsp;&nbsp;
    <asp:ImageButton ID="btnDodanie" runat="server" ImageAlign="Middle" Width="230" Height="50"
        ImageUrl="~/Styles/images/MENU2_dodawanie.png" OnClick="btnDodanie_Click" />
    <br />
    <asp:ImageButton ID="btnWydania" runat="server" ImageAlign="Middle" Width="230" Height="50"
        ImageUrl="~/Styles/images/MENU2_wydania.png" OnClick="btnWydania_Click" />
    &nbsp;&nbsp;
    <asp:ImageButton ID="btnUsun" runat="server" ImageAlign="Middle" Width="230" Height="50"
        ImageUrl="~/Styles/images/MENU2_usuwanie.png" OnClick="btnUsun_Click" />
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
        BorderWidth="1px" Caption="Aktualny stan magazynu" CellPadding="3" DataKeyNames="id"
        DataSourceID="SqlDataSource_Kapelusze" Width="500px">
        <Columns>
            <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                SortExpression="id" />
            <asp:BoundField DataField="nazwa" HeaderText="nazwa" SortExpression="nazwa" />
            <asp:BoundField DataField="kolor" HeaderText="kolor" SortExpression="kolor" />
            <asp:BoundField DataField="cena" DataFormatString="{0:#.00}" HeaderText="cena (zł)"
                SortExpression="cena" />
            <asp:BoundField DataField="material" HeaderText="materiał" SortExpression="material" />
            <asp:BoundField DataField="ilosc" HeaderText="ilość" SortExpression="ilosc" />
        </Columns>
        <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" Width="70px" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Center" VerticalAlign="Middle" />
        <RowStyle ForeColor="#000066" HorizontalAlign="Center" VerticalAlign="Middle" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#007DBB" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#00547E" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource_Kapelusze" runat="server" ConnectionString="<%$ ConnectionStrings:conString %>"
        SelectCommand="SELECT * FROM [Kapelusze]"></asp:SqlDataSource>
    <br />
</asp:Content>
